package com.lizhi.rpc.controller;/**
 * @program: hbsf_yun
 * @name RecvTrainingPatientHandler
 * @description: 接收的到正在训练的患者信息
 * @author: lizhi
 * @create: 2021-10-29 10:25
 */

import com.lizhi.rpc.handler.RecvTrainingPatientHandler;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 *@program: hbsf_yun
 *@name RecvTrainingPatientHandler
 *@description: 接收的到正在训练的患者信息
 *@author: lizhi
 *@create: 2021-10-29 10:25
 */
@Slf4j
@RestController
@RequestMapping(value = "/api/rpc/trainingPatient")
public class RecvTrainingPatientController {

    @Resource
    private RecvTrainingPatientHandler recvTrainingPatientHandler;

    @PostMapping(path = "/recvTrainingPatient")
    public String recv(@RequestBody String json){
        return recvTrainingPatientHandler.recvPatient(json);
    }
}
